# Author:Zhang Yu

import paramiko

# 创建ssh对象
ssh =paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname="192.168.200.217",port=22,username="sjcq",password="sjcq@xyl!")
stdin,stdout,stderr = ssh.exec_command("df")
result = stdout.read()
print(result.decode())
ssh.close()